package com.example.service1;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <b>TODO . </b>
 *
 * @author yangyl11
 * @version 1.0.0
 * @date 2020/11/9
 * @since JDK 1.8
 */

@RestController
public class TestController {

	private Logger logger = LoggerFactory.getLogger(TestController.class);

	@Value("${server.port}")
	private Integer port;

	@RequestMapping("/test")
	public String test(@RequestParam(required = false) String param) {

		logger.info("test provider1 @ " + port + " ; param:" + param);
		return "test provider1 @ " + port + " ; param:" + param;
	}
}
